﻿@model IEnumerable<JRFinances.ViewModels.Groups.ManageOwnedGroupsViewModel>

<fieldset>
<legend>Posiadane grupy</legend>
<p></p>
<table>
    <tr>
        <th>
            Nazwa
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.Name, "ManageGroupUsers", new { id = item.GroupId })
        </td>
        <td>
            @Html.ActionLink("Usun", "Delete", new { id = item.GroupId })
        </td>
    </tr>
}

</table>

</fieldset>

@{ Html.RenderPartial("_CreateGroup");}
